import request from '@/utils/request';

// 用户注册
const register = ({ name, telephone, password }) => {
    return request.post('user/register', { name, telephone, password });
};

// 用户登录
const login = ({ telephone, password }) => {
    return request.post('user/login', { telephone, password });
};

// 获取用户信息
const info = () => {
    return request.get('user/info');
};

//修改用户签名
const update_user_signature = (path,{signature}) => {
    return request.put(path,{signature});
}

export default {
    register,
    login,
    info,
    update_user_signature,
};